<ion-view view-title="登录页面" id="QR_page">
  <ion-header-bar class="bar bar-header padding">
      <h1 class="title">
      <button class="button button-clear button-primary" ng-click="close()">关闭</button>
      {{m_title}}
      </h1>
  </ion-header-bar>
  <ion-content class="padding">
      <!-- 登录模块 -->
      <div id="login" ng-if="display_login">
        <div class="button-bar sub_header_list">
            <a class="button button-clear" ng-click="changeModel(0)" ng-class="{true:'selected',false:'unselected'}[show_M == 0]">验证码登录</a>
            <a class="button button-clear" ng-click="changeModel(1)" ng-class="{true:'selected',false:'unselected'}[show_M == 1]">密码登录</a>
        </div>
        <form action="" ng-if="pwd_login_2" ><!--常规登录-->
            <p class="no_pwd">若忘记密码，请使用验证码登录</p>
            <div class="login_list">
              <input type="text" placeholder="输入手机号" ng-class="{'phone':true,'e_act':is_phone}" ng-model="n_user_info.user_num">
              <span class="notice">{{phone_tc}}</span>
            </div>
            <div class="login_list" style="position:relative;">
              <input id="pwd" type="password" placeholder="请输入密码" ng-class="{'phone':true,'e_act':is_phone}" ng-model="n_user_info.user_pwd">
              <span class="show" ng-click="show_pwd()">{{show_pwd_value}}</span>
              <span class="notice" >{{test_code_tc}}
                <span class="remember_pwd" >
                    <!-- ng-checked="ischecked"  -->
                  <input type="checkbox" hidden  ng-model="ischecked" ng-checked="ischecked" id="mar"/>
                  <label ng-click="toggle_pwd()">记住密码</label>
                </span>
              </span>
            </div>
            <div class="login_list">
              <button type="button" id = "login_btn_1" ng-class="{'login_btn_def':true,'login_btn_act':isact}" ng-click = "login_pwd()">登 &nbsp; 录</button>
            </div>
        </form>

        <form action="" ng-if="test_code_login_2"><!--快捷登录-->
            <p class="no_pwd"></p>
            <div class="login_list">
              <input type="text" placeholder="输入手机号" ng-class="{'phone':true,'e_act':is_phone}" ng-model="user_info.user_num" ng-focus="phone_test()">
              <span class="notice" >{{phone_tc}}</span>
            </div>
            <div class="login_list">
              <input type="text"placeholder="输入验证码" ng-class="{'num':true,'e_act':is_num}"ng-model="user_info.test_code" ng-focus="verification_test()">
              <a ng-click="get_test_code($event)" ng-bind="captcha.paracont" class="test_btn">发送验证码</a>
              <span class="notice" >{{test_code_tc}}  </span>
            </div>
            <div class="login_list">
              <button type="button" id = "login_btn" ng-class="{'login_btn_def':true,'login_btn_act':isact}" ng-click = "LOGIN()">登 &nbsp; 录</button>
            </div>
        </form>
        <p class="change">
            还不是会员，<span style="color:#A58648;"ng-click="change_page(1)" >马上注册</span>
        </p>
      </div>
      <!-- 注册模块 -->
      <div id="register" ng-if="display_register">
        <form action="" style="margin-top:30px;">
          <div class="login_list">
            <input type="text" placeholder="输入手机号" ng-class="{'phone':true,'e_act':is_phone}" ng-model="register_info.phone">
            <span class="notice">手机号码不正确</span>
          </div>
          <div class="login_list" style="position:relative;">
            <input id="pwd" type="password" placeholder="请输入密码" ng-class="{'phone':true,'e_act':is_phone}" ng-model="register_info.pwd">
            <span class="show" ng-click="show_pwd()">{{show_pwd_value}}</span>
            <span class="notice" >
              密码长度为8位数
            </span>
          </div>
          <div class="login_list">
            <input type="text"placeholder="输入验证码" ng-class="{'num':true,'e_act':is_num}"ng-model="register_info.code" ng-focus = "set_code_notice()">
            <a ng-click="register_code($event)" ng-bind="captcha.paracont" class="test_btn">发送验证码</a>
            <span class="notice" >{{reg_code_notice}} </span>
          </div>
          <div class="login_list">
            <button type="button" id = "login_btn_1" ng-class="{'login_btn_def':true,'login_btn_act':isact}" ng-click = "register()">注&nbsp;册</button>
          </div>
        </form>
        <p class="change">
            已是会员，<span style="color:#A58648;"ng-click="change_page(0)" >马上登录</span>
        </p>
      </div>
    </ion-content>
</ion-view>